import request from '../../utils/request';
import { userData } from '../../common/model/commonType';


/**
 * 用户登录
 * */
export function userLogin(data: userData) {
  return request({
    url: '/login',
    method: 'POST',
    data: data
  })
}

/**
 * 获取登录验证码
 * */
export function getCode() {
  return request({
    url: '/captchaImage',
    headers: {
      isToken: false
    },
    method: 'get',
  })
}